#!/usr/bin/bash

chown redis:redis /opt/local/etc/redis.conf

ARG_NAME=enable_redis
if /usr/sbin/mdata-get ${ARG_NAME} 1>/dev/null 2>&1; then
    ARG_VALUE=$(/usr/sbin/mdata-get ${ARG_NAME})
    if [ "${ARG_VALUE}" == "true" ]; then
        log "enable ldap"
        /usr/sbin/svcadm enable redis
    fi
fi


